package com.tomdd.mapper;

import com.tomdd.model.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhongxu
 * @description 针对表【article】的数据库操作Mapper
 * @createDate 2024-07-17 21:27:40
 * @Entity com.tomdd.model.entity.Article
 */
public interface ArticleMapper extends BaseMapper<Article> {

    /**
     * 文章分类查询
     *
     * @param userId     用户id
     * @param categoryId 文章分类id
     * @param state      状态: 发布 ｜ 草稿
     * @return 文章列表 {@link Article}
     */
    List<Article> pageList(@Param("userId") Integer userId, @Param("categoryId") Integer categoryId, @Param("state") String state);
}




